include("shared.lua")

function ENT:HUDPaint(tr)	
	if (LocalPlayer():KeyDown(IN_USE) && tr.Entity == self && tr.Entity.dt.Use != 100) then
		draw.RoundedBox(4, ScrW()/2+10, ScrH()/2+25, 100, 15, Color(0,0,0,100))
		local itempercent = -tr.Entity.dt.Use+100
		draw.RoundedBox(4, ScrW()/2+10, ScrH()/2+25, itempercent, 15, Color(140, 0, 0, 180))
	end
end